<%--
    Document   : index
    Created on : Apr 9, 2010, 9:04:01 PM
    Author     : Guy Sagy
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhmtl1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <!-- head section -->
    <head>
        <meta name="author" content="Guy Sagy" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="resources/company_icon_32x32.ico" rel="shortcut icon" type="image/ico" />
        <link href="css/${presentationMedium}/main.css" rel="stylesheet" type="text/css" />
        <link href="css/${presentationMedium}/menubar.css" rel="stylesheet" type="text/css" />
        <link href="css/${presentationMedium}/formlayout.css" rel="stylesheet" type="text/css" />
        <script src="js/3rdpartylibs/jslib_dom_ready.js" type="text/javascript"></script>
        <script src="js/3rdpartylibs/jslib_css.js" type="text/javascript"></script>
        <script src="js/3rdpartylibs/jslib_event.js" type="text/javascript"></script>
        <script src="js/3rdpartylibs/jslib_event_mouse.js" type="text/javascript"></script>
        <script src="js/3rdpartylibs/jslib_event_keyboard.js" type="text/javascript"></script>
        <script src="js/button_handlers.js" type="text/javascript"></script>
        <script src="js/data_validation.js" type="text/javascript"></script>
        <script src="js/menubar.js" type="text/javascript"></script>
        <title>${appTitle} - ${pageTitle}</title>
    </head>

    <body>

        <!-- body header section -->
        <div id="captionBar">
            <h1>${appTitle} - Welcome ${user.profile.firstName} ${user.profile.lastName}</h1>
        </div>

        <%@ include file="WEB-INF/jspf/new_mainmenu.jspf" %>

        <!-- body main section -->
        <div id="main">
            <c:if test="${displayMessage != null}">
                <div id="error" align="center">
                        ${displayMessage.messageTitle}<br/>${displayMessage.messageBody}
                </div>
            </c:if>
            <%@ include file="WEB-INF/jspf/registerform.jspf" %>
        </div>

        <!-- body footer section -->
        <%@include file="WEB-INF/jspf/footer.jspf" %>
    </body>

</html>
